package utfpr.ct.dainf.engcomp.bean;


public class Cromossomo {
	
	private Gene[] genes;
	
	
	public Cromossomo(int totalGenes){
		genes = new Gene[totalGenes];
	}

	public Gene getGeneAt(int index) {
		return genes[index];
	}

	public Gene[] getGenes(){
		return genes;
	}
	
	public void setGeneAt(int index, Gene gene){
		this.genes[index] = new Gene(gene.getAlelo());
	}
	
	public int getGeneSize(){
		return genes.length;
	}

}
